package com.txh.blog.consts;

/**
 * 返回参数枚举
 */
public enum  ResultEnum {
    SUCCESS(200,"操作成功"),
    EXCEPTION(500,""),
    NULL_ATTR(101,"参数错误")
    ;

    private int code;

    private String msg;

    ResultEnum(int code,String msg){
        this.code =code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
